# -*- coding: utf-8 -*-
from apps.absent.models import *


def get_responder(requset):
    user = requset.user
    if user.department.leader.uid == user.uid:
        if user.department.name == "董事会":
            responder = None
        else:
            responder = user.department.manager
    else:
        responder = user.department.leader
    return responder




